package jgl.vajra.management.part.order.contract;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.management.bean.GrabOrdersBean;
import jgl.vajra.management.databinding.ActivityGrabDetailsBinding;
import jgl.vajra.management.netty.GrabOrderBean;
import jgl.vajra.management.widget.mvvm.model.BaseModel;
import jgl.vajra.management.widget.mvvm.view.BaseMVVMView;
import jgl.vajra.management.widget.mvvm.viewmodel.BaseViewModel;

public class GrabDetailsContract {

    public abstract static class Model extends BaseModel {

        public abstract Observable<GrabOrdersBean> getGrabOrdersData(Map<String, Object> map);

    }

    public interface View extends BaseMVVMView {

        void onGrabOrders(GrabOrderBean data);

        void returnGrabOrdersData(GrabOrdersBean data);
    }

    public abstract static class ViewModel extends BaseViewModel<View, ActivityGrabDetailsBinding, Model> {
        
        public abstract void getGrabOrdersData(Map<String, Object> map);
        
    }
}
